#pragma once

namespace db
{

class WriteStream
{
public:
	virtual bool write(const void* data, const unsigned int size) = 0;
    virtual void complete() = 0;
    virtual bool open() { return true; }
};

class ReadStream
{
public:
	virtual bool read(void* data, const unsigned int size) = 0;
    virtual void complete() = 0;
    virtual bool open() { return true; }
};

};